<script>

    jxt.link.newJson = function (dataJson, attrs) {
        if (!dataJson) dataJson = jxt.link.dataJson;
        var _self = jxt.tag.newJson(dataJson);
        var text;
        var url;
        if (attrs) {
            text = attrs.text;
            url = attrs.url;
            if (!text)text = url;
        }
        _self.text=text;
        _self.url=url;
        return _self;
    };
   /* jxt.link.editbegin = function (eleid) {
        var node = jxt.getnode(eleid);
        jxt.msg.radio(eleid, "help_link", {"callbackfunction": "jxt.link.editend", "data": node});
    };*/
    jxt.link.help_callback=jxt.link.editend = function (subscribe_id, eventkey, attrs, event_source_id) {
        var eleid = subscribe_id;
        var node = jxt.getnode(eleid);
        node.text = attrs.text;
        node.url = attrs.url;
        if(!(node.text))node.text=  node.url;
        jxt.msg.radio(eleid, "nodechange");
        jxt.render(jxt.nowlevoneid, true);
    };

   /* jxt.link.help_getdata=function (id) {
        var node = jxt.getnode(eleid);
        return node;
    };*/

   /* jxt.link.help_callback=function (subscribe_id, eventkey, attrs, event_source_id) {
        jxt.link.editend(subscribe_id, eventkey, attrs, event_source_id);
    };*/

</script>